using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevJobsparepartTList, table list:dev_jobsparepart_t 
	/// </summary>
	internal class DevJobsparepartTList : BaseWritableEntities<DevJobsparepartT>, IDevJobsparepartTList
	{
		private DevJobsparepartTQueryDAO _queryDAO;
		private DevJobsparepartTWritingDAO _writeDAO;

		public DevJobsparepartTList(DevJobsparepartTQueryDAO queryDao, DevJobsparepartTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevJobsparepartT,table items:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobsparepartT> GetDevJobsparepartTAllItems()
		{
			return _queryDAO.GetDevJobsparepartTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevJobsparepartT,table items:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobsparepartT> GetDevJobsparepartTItemsById(int id)
		{
			return _queryDAO.GetDevJobsparepartTItemsById(id);
		}

		/// <summary>
		/// 根据jobId，获取所有DevJobsparepartT,table items:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobsparepartT> GetDevJobsparepartTItemsByJobId(int jobId)
		{
			return _queryDAO.GetDevJobsparepartTItemsByJobId(jobId);
		}

		/// <summary>
		/// 增加一行DevJobsparepartT,table item:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobsparepartT(DevJobsparepartT item)
		{
			return this._writeDAO.AddDevJobsparepartT(item);
		}

		/// <summary>
		/// 增加多行DevJobsparepartT,table items:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobsparepartTs(DevJobsparepartT[] items)
		{
			return this._writeDAO.AddDevJobsparepartTs(items);
		}

		/// <summary>
		/// 更新一行DevJobsparepartT,table item:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobsparepartT(DevJobsparepartT item)
		{
			return this._writeDAO.UpdateDevJobsparepartT(item);
		}

		/// <summary>
		///  更新多行DevJobsparepartT,table items:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobsparepartTs(DevJobsparepartT[] items)
		{
			return this._writeDAO.UpdateDevJobsparepartTs(items);
		}

		/// <summary>
		/// 删除一行DevJobsparepartT,table item:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobsparepartT(DevJobsparepartT item)
		{
			return this._writeDAO.DeleteDevJobsparepartT(item);
		}

		/// <summary>
		///  删除多行DevJobsparepartT,table items:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobsparepartTs(DevJobsparepartT[] items)
		{
			return this._writeDAO.DeleteDevJobsparepartTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevJobsparepartT,table entity:dev_jobsparepart_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobsparepartTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevJobsparepartTByIds(ids);
		}

	}
}
